package com.cat.state.before;

// 电梯接口
public interface ILift {
    // 定义电梯的四种状态
    int OPENING_STATE = 1;
    int CLOSING_STATE = 2;
    int RUNNING_STATE = 3;
    int STOPPING_STATE = 4;

    // 设置电梯状态的功能
    void setState(int state);

    // 电梯操作
    void open();
    void close();
    void run();
    void stop();


}
